# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-enum-compat
_pkgname=enum-compat
pkgver=0.0.3
pkgrel=8
pkgdesc='enum/enum34 compatibility package.'
url='https://pypi.org/project/enum-compat/#files'
arch=('any')
license=('MIT')
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('7d1b0e4eed9dfbd7575b24b05ab177ea914ca27cdafa4fa760ffccd83d075553e46e5a40c34b00b51a2b169e0e468f4976e863e96175f37ef54257a259759801')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 \
    --skip-build
}

